<%@page import="org.opengeoingest.tufts.Layer.*, java.util.*"%>
 
 <jsp:include page="includes/header.jspf" />
  
<p>
<%
Ingestor tuftsIngestor = new Ingestor("http://geoserver-dev.atech.tufts.edu", "smcdon08", "esri2010!");
List<String> layers = tuftsIngestor.getLayersToIngest();
if (layers == null)
	out.write("<p>error getting layers</p>");
else
{
	out.write("<p>Layers from GeoServer (count = " + layers.size() + ")</p>");
	for (int i = 0 ; i < layers.size() ; i++)
	{
		out.write(layers.get(i) + " " );
	}
	out.write("<br/>");
}
%>
</p>
Select file to ingest:
<br/>
<form action="ingestHandler.jsp" method="post" ENCTYPE="multipart/form-data">
Institution: 
<select name="institution">
<option selected="selected">Tufts</option>
<option>Harvard</option>
<option>MIT</option>
<option>MassGis</option>
<option>Princeton</option>
</select>
<br/>
<input type="file" multiple="" name="FgdcFile[]"/>
<input type="submit" value="Submit"/>
</form>

<jsp:include page="includes/footer.jspf" />
